package com.team5101.service.impl;

import com.team5101.dao.INextFilmDao;
import com.team5101.entity.NextFilm;
import com.team5101.service.INextFilmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NextFilmServiceImpl implements INextFilmService {

    @Autowired
    private INextFilmDao nextFilmDao;

    public List<NextFilm> getAllNextFilm(Integer nfIshow) {
        return nextFilmDao.getAllNextFilm(nfIshow);
    }

    public NextFilm selectByFid(Integer nfId) {
        return nextFilmDao.selectByFid(nfId);
    }

    public List<NextFilm> getNextFilm() {
        return nextFilmDao.getNextFilm();
    }
}
